package com.cheng.service.appcategory;

import com.cheng.dao.appcategory.AppCategoryDao;
import com.cheng.pojo.AppCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
@SuppressWarnings("all")
public class AppCategoryServiceImpl implements AppCategoryService {
    @Autowired
    private AppCategoryDao appCategoryDao;

    @Override
    public List<List<AppCategory>> getAllLevel() {
        /*List<List<AppCategory>> list = new ArrayList<>();

        List<AppCategory> categoryLevel1 = appCategoryDao.getCategoryLevel1();
        List<AppCategory> categoryLevel2 = appCategoryDao.getCategoryLevel2();
        List<AppCategory> categoryLevel3 = appCategoryDao.getCategoryLevel3();

        list.add(categoryLevel1);
        list.add(categoryLevel2);
        list.add(categoryLevel3);*/
        return null;
    }

    @Override
    public List<AppCategory> getTypeLevel1() {
        return appCategoryDao.getCategoryLevel1();
    }

    @Override
    public List<AppCategory> getTypeLevel2(int level) {
        return appCategoryDao.getCategoryLevel2(level);
    }

    @Override
    public List<AppCategory> getTypeLevel3(int level) {
        return appCategoryDao.getCategoryLevel3(level);
    }
}
